//
//  TopSongsViewController.h
//  iTunesTopSongs
//
//  Created by 云天 李 on 12-2-18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "ImageDownloader.h"
@class SongDetailViewController;

@interface TopSongsViewController : UITableViewController <UIScrollViewDelegate, ImageDownloaderDelegate>

// 歌曲信息
@property (strong, nonatomic) SongDetailViewController *songDetailViewController;

// Core Data 堆栈属性
@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;

// 用于下载封面图
@property (nonatomic, retain) NSMutableDictionary *imageDownloadsInProgress;

// 歌曲数量
@property NSUInteger songs;

// 从 Core Data 持久化存储中获取数据
- (void)fetch;

@end
